const app=new Vue({
    el:"#vue",


    methods:{
        logout:function (event) {
            alert("1");
            axios.delete("/api/session").then(function (response) {
                if(response.code==="ok"){
                    location.href="/login.html";
                    alert("注销成功!");
                }
            })
        }
    }
});